#ifndef IMAGEVIEW_H
#define IMAGEVIEW_H

//(*Headers(ImageView)
#include <wx/panel.h>
//*)
#include <wx/scrolwin.h>
#include <wx/bitmap.h>
//using namespace std;
struct SSelImage;

class ImageView: public wxScrolledWindow
{
public:
    ImageView(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
    virtual ~ImageView();
    void SetImage(wxString &fileName);
    wxRect GetSelect()
    {
        return m_selRect;
    }
    wxString GetImageName()
    {
        return m_imageName;
    }
    SSelImage *GetSelImage();
    //(*Declarations(ImageView)
    //*)

protected:
    void Draw(wxDC &dc);
    void OnPaint(wxPaintEvent& event);
    void OnLeftDown(wxMouseEvent &event);
    void OnLeftUp(wxMouseEvent &event);
    void OnMove(wxMouseEvent &event);
    void OnBackground(wxEraseEvent &event);
    void OnActive(wxActivateEvent &event);
    //(*Identifiers(ImageView)
    //*)

private:
    bool m_drawSelRect;
    wxBitmap *m_pBmp;
    wxString m_imageName;
    wxRect m_selRect;
    wxSize m_virtualSize;
    DECLARE_EVENT_TABLE()
    //(*Handlers(ImageView)
    //*)
};

#endif
